package com.woniu.defecttracking.exception;

import lombok.Data;

/**
 * @ClassName 类名： DefectTrackingException
 * @Description 描述：
 * @Author haotian
 * @Date 时间：2021/12/31 2:23 下午
 * @Param 参数：
 * @Retrun 返回：
 **/
@Data
public class DefectTrackingException extends Exception{
    private Integer code;
    public DefectTrackingException(String msg,Integer code){
        super(msg);
        this.code=code;
    }
    public DefectTrackingException(String msg) {
        super(msg);
        this.code = 1001;
    }
}
